<div id="Viewing-differences"></div>
<div class="header">
<p>
Previous: [[cvs: Cleaning up#Cleaning up|Cleaning up]], Up: [[cvs: A sample session#A sample session|A sample session]] &nbsp; |[[cvs: Index#SEC_Contents|Contents]]||[[cvs: Index#Index|Index]]|</p>
</div>

----

<div id="Viewing-differences-1"></div>
==== Viewing differences ====
<div id="index-Viewing-differences"></div>
<div id="index-Diff"></div>

You do not remember modifying &lsquo;<tt>driver.c</tt>&rsquo;, so you want to see what
has happened to that file.

<div class="example" style="margin-left: 3.2em">
 $ cd tc
 $ cvs diff driver.c
</div>

This command runs <code>diff</code> to compare the version of &lsquo;<tt>driver.c</tt>&rsquo;
that you checked out with your working copy.  When you see the output
you remember that you added a command line option that enabled the
optimization pass.  You check it in, and release the module.

<div class="example" style="margin-left: 3.2em">
 $ cvs commit -m &quot;Added an optimization pass&quot; driver.c
 Checking in driver.c;
 /usr/local/cvsroot/tc/driver.c,v  &lt;--  driver.c
 new revision: 1.2; previous revision: 1.1
 done
 $ cd ..
 $ cvs release -d tc
 ? tc
 You have <nowiki>[</nowiki>0<nowiki>]</nowiki> altered files in this repository.
 Are you sure you want to release (and delete) directory `tc': y
</div>

This document was generated on <i>a sunny day</i> using [http://www.nongnu.org/texi2html/ <i>texi2html</i>].
